package songZhao.MinaDemo.SimpleDemo;

import org.apache.mina.core.filterchain.IoFilterAdapter;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.core.write.WriteRequest;
/**
 * 代码注释请查看songZhao.MinaDemo.SimpleDemo.ServerFilter
 * @author agui415
 *
 */
public class ClientFilter extends IoFilterAdapter {

	@Override
	public void messageReceived(NextFilter nextFilter, IoSession session, Object message) throws Exception {
		System.out.println("ClientFilter messageReceived.");
		nextFilter.messageReceived(session, message);
	}

	@Override
	public void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {
		System.out.println("ClientFilter messageSent.");
		nextFilter.messageSent(session, writeRequest);
	}
}
